package com.meituan.sqt.mock.infrastructure.persistence.mysql.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meituan.sqt.mock.domain.enums.PayStatusEnum;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: chenzhenfeng@meituan.com
 * @date: 2023/1/30 16:43
 * @description:
 */
@Data
@Builder
@TableName("type_b_pay_info")
public class TypeBPayInfoPo {
    private Long payId;
    private Long tradeNo;
    private Long orderId;
    private BigDecimal tradeAmount;
    private BigDecimal serviceFeeAmount;
    private Integer payStatus;
    private Date gmtCreated;
    private Date gmtModified;

    public boolean isPayed() {
        return PayStatusEnum.SUCCESS.equals(this.payStatus);
    }
}
